:root {
    --primary-green: #4CAF50;
    --ocean-blue: #2196F3;
    --earth-brown: #795548;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.banner {
    height: 60vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                      url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-title {
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.eco-data {
    padding: 2rem;
    background-color: #f5f5f5;
}

.card-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.card-container::-webkit-scrollbar {
    display: none;
}

.eco-card {
    min-width: 280px;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    text-align: center;
    transition: transform 0.3s ease;
}

.eco-card:hover {
    transform: translateY(-5px);
}

.eco-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.eco-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.eco-card .counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 1rem 0;
}

.eco-card p {
    font-size: 1.1rem;
    color: #666;
}

.eco-card small {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 二维码按钮样式 */
.qr-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.qr-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.qr-button:hover {
    background: white;
    transform: translateY(-2px);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}

.modal-content {
    position: relative;
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    border-radius: 12px;
    text-align: center;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#qrcode {
    margin: 20px auto;
}

#pageUrl {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.qr-tip {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* 移动端隐藏二维码按钮 */
@media (max-width: 768px) {
    .qr-container {
        display: none;
    }
}

/* 社交媒体区域样式 */
.social-media {
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
    padding: 3rem 0;
    margin-top: 3rem;
}

.social-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.social-title {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

.social-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.social-link span {
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--primary-green);
}

.social-link:hover i {
    transform: scale(1.2);
}

/* 微信二维码悬浮框 */
.wechat {
    position: relative;
}

.wechat-qr {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    width: 150px;
}

.wechat-qr img {
    width: 100%;
    height: auto;
}

.wechat-qr p {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.wechat:hover .wechat-qr {
    display: block;
}

.copyright {
    margin-top: 2rem;
    color: #888;
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .social-links {
        gap: 1.5rem;
    }
    
    .social-link i {
        font-size: 1.8rem;
    }
}